<template>
    <div id="app">
        <router-view/>
    </div>
</template>

<script>
    export default {
        name: 'App',
        created: function () {
            this.$store.dispatch('loadUserInfo');
            if (sessionStorage.uid == null) {
                sessionStorage.clear()
                document.cookie = 'PHPSESSID=null'
            }
        }
    }
</script>

<style>
    #app {
        min-width: 760px;
        position: relative;
    }
</style>
